﻿#region Using directives

using System;
using System.Collections;
using System.Data;
using UFSoft.UBF.UI.MD.Runtime;
using UFSoft.UBF.UI.MD.Runtime.Implement;

#endregion

namespace UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDListUI.UserDefAllocRateConfigListUIModel
{
	[Serializable]
	public partial class UserDefAllocRateConfigListUIModelModel : UIModel
	{
		#region Constructor
		public UserDefAllocRateConfigListUIModelModel() : base("UserDefAllocRateConfigListUIModel")
		{
			InitClass();
			this.SetResourceInfo("84289aa0-a80f-4a89-a02e-fc7e72ae470c");
            try{
			    AfterInitModel();
            }catch(Exception exception){
              IUIModel model = this;
		      this.ErrorMessage.SetErrorMessage(ref model,exception);
			}
		}

		//just for Clone 
		private UserDefAllocRateConfigListUIModelModel(bool isInit) : base("UserDefAllocRateConfigListUIModel")
		{}
		protected override IUIModel CreateCloneInstance()
		{
			return new UserDefAllocRateConfigListUIModelModel(false);
		}
		#endregion
		#region member
		#region views
		private UserDefAllocRateConfigView viewUserDefAllocRateConfig;			
		#endregion
		
		#region links
		#endregion
		
		#region properties
		#endregion
		#endregion

		#region property
		public UserDefAllocRateConfigView UserDefAllocRateConfig
		{
			get { return (UserDefAllocRateConfigView)this["UserDefAllocRateConfig"]; }
		}
		
		#region RealViews
		#endregion
		
	
		#endregion

		#region function
		private void InitClass()
		{
			this.viewUserDefAllocRateConfig = new UserDefAllocRateConfigView(this);
			this.viewUserDefAllocRateConfig.SetResourceInfo("ba3fb725-c698-491a-ac1a-e3a47cd2b3ad");
			this.Views.Add(this.viewUserDefAllocRateConfig);			

			
		}

		public override string AssemblyName
		{
			get { return "UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDListUI"; }
		}
		
		#endregion
		private void OnValidate_DefualtImpl()
    {
    }

	}


	[Serializable]
	public partial class UserDefAllocRateConfigView : UIView
	{
		#region Constructor
		public UserDefAllocRateConfigView(IUIModel model) : base(model,"UserDefAllocRateConfig","UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDBE.UserDefAllocRateConfigBE.UserDefAllocRateConfig", true)
		{
			InitClass();
		}
		//构造空实例,不进行初始化.目前为Clone使用.
		private UserDefAllocRateConfigView():base(null,"UserDefAllocRateConfig","UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDBE.UserDefAllocRateConfigBE.UserDefAllocRateConfig", true)
		{
		}
		protected override IUIView CreateCloneInstance()
		{
			return new UserDefAllocRateConfigView();
		}
		#endregion

		#region fiels property filter
		public IUIField FieldID
		{
			get { return this.Fields["ID"]; }
		}
		public IUIField FieldCreatedOn
		{
			get { return this.Fields["CreatedOn"]; }
		}
		public IUIField FieldCreatedBy
		{
			get { return this.Fields["CreatedBy"]; }
		}
		public IUIField FieldModifiedOn
		{
			get { return this.Fields["ModifiedOn"]; }
		}
		public IUIField FieldModifiedBy
		{
			get { return this.Fields["ModifiedBy"]; }
		}
		public IUIField FieldSysVersion
		{
			get { return this.Fields["SysVersion"]; }
		}
		public IUIField FieldUserDefAllocRateCode
		{
			get { return this.Fields["UserDefAllocRateCode"]; }
		}
		public IUIField FieldUserDefAllocRateCode_Code
		{
			get { return this.Fields["UserDefAllocRateCode_Code"]; }
		}
		public IUIField FieldUserDefAllocRateCode_Name
		{
			get { return this.Fields["UserDefAllocRateCode_Name"]; }
		}
		public IUIField FieldUserDefAllocRateName
		{
			get { return this.Fields["UserDefAllocRateName"]; }
		}
		public IUIField FieldRemark
		{
			get { return this.Fields["Remark"]; }
		}
		public IUIField FieldOrg
		{
			get { return this.Fields["Org"]; }
		}
		public IUIField FieldOrg_Code
		{
			get { return this.Fields["Org_Code"]; }
		}
		public IUIField FieldOrg_Name
		{
			get { return this.Fields["Org_Name"]; }
		}


		[Obsolete("请使用CurrentFilter属性，这个方法有可能会导致强弱类型转换出错")]
		public UserDefAllocRateConfigDefaultFilterFilter DefaultFilter
		{
			get { return (UserDefAllocRateConfigDefaultFilterFilter)this.CurrentFilter; }
		}
		#endregion

		#region Init
		private void InitClass()
		{
			UIModelRuntimeFactory.AddNewUIField(this,"ID", typeof(Int64), false,"","System.Int64", "ID", true,true, false, "",false,(UIFieldType)1,"ba391065-6c27-4c82-acc8-b52b1c93a910","9af1f7ba-7be2-4d40-8d60-e2e593e4ff47");
			UIModelRuntimeFactory.AddNewUIField(this,"CreatedOn", typeof(DateTime), true,"","System.DateTime", "CreatedOn", true,true, false, "",false,(UIFieldType)1,"3834a958-120f-4ac9-8d60-1a7be6d3f12f","279965ed-79f2-43e2-a2b2-f0ddb7854bc8");
			UIModelRuntimeFactory.AddNewUIField(this,"CreatedBy", typeof(String), true,"","System.String", "CreatedBy", true,true, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","7eb32a71-3aac-4ec9-b166-0499ae7e8cbe");
			UIModelRuntimeFactory.AddNewUIField(this,"ModifiedOn", typeof(DateTime), true,"","System.DateTime", "ModifiedOn", true,true, false, "",false,(UIFieldType)1,"3834a958-120f-4ac9-8d60-1a7be6d3f12f","34102356-a7d1-4ee3-bf69-fc632857f044");
			UIModelRuntimeFactory.AddNewUIField(this,"ModifiedBy", typeof(String), true,"","System.String", "ModifiedBy", true,true, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","90b0770f-5d7e-45ec-b5d2-f40112dd1cb5");
			UIModelRuntimeFactory.AddNewUIField(this,"SysVersion", typeof(Int64), true,"0","System.Int64", "SysVersion", true,true, false, "",false,(UIFieldType)1,"ba391065-6c27-4c82-acc8-b52b1c93a910","7db81f5e-f8d4-4dbf-869b-0a76572fe089");
			UIModelRuntimeFactory.AddNewUIField(this,"UserDefAllocRateCode", typeof(Int64), true,"","UFIDA.U9.CBO.SCM.Item.ItemMaster", "UserDefAllocRateCode", true,true, false, "",false,(UIFieldType)4,"636d3e47-48aa-47fc-aca4-e6322bce775b","82fc7603-593d-4b43-b865-828dd6ec889f");
			UIModelRuntimeFactory.AddNewUIField(this,"UserDefAllocRateCode_Code", typeof(String), false,"","System.String", "UserDefAllocRateCode.Code", false,true, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","621490ee-cf2a-4ffa-abfe-8d5f81b4cb0a");
			UIModelRuntimeFactory.AddNewUIField(this,"UserDefAllocRateCode_Name", typeof(String), false,"","System.String", "UserDefAllocRateCode.Name", false,true, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","346ad891-3e78-4d8d-b8e4-64180628240a");
			UIModelRuntimeFactory.AddNewUIField(this,"UserDefAllocRateName", typeof(String), true,"","System.String", "UserDefAllocRateName", true,true, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","7a7b45a9-0bfa-4e53-91ff-04037216ecf7");
			UIModelRuntimeFactory.AddNewUIField(this,"Remark", typeof(String), true,"","System.String", "Remark", true,true, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","0f0be363-cdf6-4be9-ad22-55cfee4150c3");
			UIModelRuntimeFactory.AddNewUIField(this,"Org", typeof(Int64), true,"","UFIDA.U9.Base.Organization.Organization", "Org", true,true, false, "",false,(UIFieldType)4,"73eb56da-f25a-4636-94e7-61b0cb4b7784","0317b220-ee27-4b18-829e-c79adf6bc9fc");
			UIModelRuntimeFactory.AddNewUIField(this,"Org_Code", typeof(String), false,"","System.String", "Org.Code", false,true, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","f18d673a-8900-43b9-9be9-3af5f290eaa2");
			UIModelRuntimeFactory.AddNewUIField(this,"Org_Name", typeof(String), true,"","System.String", "Org.Name", false,true, false, "",true,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","8c117c3e-852f-48b7-8717-0510a887cecc");


			this.CurrentFilter = new UserDefAllocRateConfigDefaultFilterFilter(this);
		}
		#endregion
		
		#region override method
		protected override IUIRecord BuildNewRecord(IUIRecordBuilder builder)
		{
			return new UserDefAllocRateConfigRecord(builder);
		}
		#endregion

		#region new method
		public new UserDefAllocRateConfigRecord FocusedRecord
		{
			get { return (UserDefAllocRateConfigRecord)base.FocusedRecord ; }
			set { base.FocusedRecord = value ; }
		}
		public new UserDefAllocRateConfigRecord AddNewUIRecord()
		{	
			return (UserDefAllocRateConfigRecord)base.AddNewUIRecord();
		}
		public new UserDefAllocRateConfigRecord NewUIRecord()
		{	
			return (UserDefAllocRateConfigRecord)base.NewUIRecord();
		}
		#endregion 

	}

	[Serializable]
	public class UserDefAllocRateConfigRecord : UIRecord
	{
		#region Constructor
		public UserDefAllocRateConfigRecord(IUIRecordBuilder builder):base(builder)
		{
		}
		private UserDefAllocRateConfigView uiviewUserDefAllocRateConfig
		{
			get { return (UserDefAllocRateConfigView)this.ContainerView; }
		}
		protected override IUIRecord CreateCloneInstance(IUIRecordBuilder builder)
		{
			return new UserDefAllocRateConfigRecord(builder);
		}
		#endregion

		#region property
		
		
		public  Int64 ID
		{
			get{
				//object value = this[this.uiviewUserDefAllocRateConfig.FieldID] ;
				//return (Int64)value;
				return GetValue<Int64>(this.uiviewUserDefAllocRateConfig.FieldID);
			}
			set{
				this[this.uiviewUserDefAllocRateConfig.FieldID] = value;
			}
		}
		
		
		public  DateTime? CreatedOn
		{
			get{
				//object value = this[this.uiviewUserDefAllocRateConfig.FieldCreatedOn] ;
				//return (DateTime?)value;
				return GetValue<DateTime?>(this.uiviewUserDefAllocRateConfig.FieldCreatedOn);
			}
			set{
				this[this.uiviewUserDefAllocRateConfig.FieldCreatedOn] = value;
			}
		}
		
		
		public  String CreatedBy
		{
			get{
				//object value = this[this.uiviewUserDefAllocRateConfig.FieldCreatedBy] ;
				//return (String)value;
				return GetValue<String>(this.uiviewUserDefAllocRateConfig.FieldCreatedBy);
			}
			set{
				this[this.uiviewUserDefAllocRateConfig.FieldCreatedBy] = value;
			}
		}
		
		
		public  DateTime? ModifiedOn
		{
			get{
				//object value = this[this.uiviewUserDefAllocRateConfig.FieldModifiedOn] ;
				//return (DateTime?)value;
				return GetValue<DateTime?>(this.uiviewUserDefAllocRateConfig.FieldModifiedOn);
			}
			set{
				this[this.uiviewUserDefAllocRateConfig.FieldModifiedOn] = value;
			}
		}
		
		
		public  String ModifiedBy
		{
			get{
				//object value = this[this.uiviewUserDefAllocRateConfig.FieldModifiedBy] ;
				//return (String)value;
				return GetValue<String>(this.uiviewUserDefAllocRateConfig.FieldModifiedBy);
			}
			set{
				this[this.uiviewUserDefAllocRateConfig.FieldModifiedBy] = value;
			}
		}
		
		
		public new Int64? SysVersion
		{
			get{
				//object value = this[this.uiviewUserDefAllocRateConfig.FieldSysVersion] ;
				//return (Int64?)value;
				return GetValue<Int64?>(this.uiviewUserDefAllocRateConfig.FieldSysVersion);
			}
			set{
				this[this.uiviewUserDefAllocRateConfig.FieldSysVersion] = value;
			}
		}
		
		
		public  Int64? UserDefAllocRateCode
		{
			get{
				//object value = this[this.uiviewUserDefAllocRateConfig.FieldUserDefAllocRateCode] ;
				//return (Int64?)value;
				return GetValue<Int64?>(this.uiviewUserDefAllocRateConfig.FieldUserDefAllocRateCode);
			}
			set{
				this[this.uiviewUserDefAllocRateConfig.FieldUserDefAllocRateCode] = value;
			}
		}
		
		
		public  String UserDefAllocRateCode_Code
		{
			get{
				//object value = this[this.uiviewUserDefAllocRateConfig.FieldUserDefAllocRateCode_Code] ;
				//return (String)value;
				return GetValue<String>(this.uiviewUserDefAllocRateConfig.FieldUserDefAllocRateCode_Code);
			}
			set{
				this[this.uiviewUserDefAllocRateConfig.FieldUserDefAllocRateCode_Code] = value;
			}
		}
		
		
		public  String UserDefAllocRateCode_Name
		{
			get{
				//object value = this[this.uiviewUserDefAllocRateConfig.FieldUserDefAllocRateCode_Name] ;
				//return (String)value;
				return GetValue<String>(this.uiviewUserDefAllocRateConfig.FieldUserDefAllocRateCode_Name);
			}
			set{
				this[this.uiviewUserDefAllocRateConfig.FieldUserDefAllocRateCode_Name] = value;
			}
		}
		
		
		public  String UserDefAllocRateName
		{
			get{
				//object value = this[this.uiviewUserDefAllocRateConfig.FieldUserDefAllocRateName] ;
				//return (String)value;
				return GetValue<String>(this.uiviewUserDefAllocRateConfig.FieldUserDefAllocRateName);
			}
			set{
				this[this.uiviewUserDefAllocRateConfig.FieldUserDefAllocRateName] = value;
			}
		}
		
		
		public  String Remark
		{
			get{
				//object value = this[this.uiviewUserDefAllocRateConfig.FieldRemark] ;
				//return (String)value;
				return GetValue<String>(this.uiviewUserDefAllocRateConfig.FieldRemark);
			}
			set{
				this[this.uiviewUserDefAllocRateConfig.FieldRemark] = value;
			}
		}
		
		
		public  Int64? Org
		{
			get{
				//object value = this[this.uiviewUserDefAllocRateConfig.FieldOrg] ;
				//return (Int64?)value;
				return GetValue<Int64?>(this.uiviewUserDefAllocRateConfig.FieldOrg);
			}
			set{
				this[this.uiviewUserDefAllocRateConfig.FieldOrg] = value;
			}
		}
		
		
		public  String Org_Code
		{
			get{
				//object value = this[this.uiviewUserDefAllocRateConfig.FieldOrg_Code] ;
				//return (String)value;
				return GetValue<String>(this.uiviewUserDefAllocRateConfig.FieldOrg_Code);
			}
			set{
				this[this.uiviewUserDefAllocRateConfig.FieldOrg_Code] = value;
			}
		}
		
		
		public  String Org_Name
		{
			get{
				//object value = this[this.uiviewUserDefAllocRateConfig.FieldOrg_Name] ;
				//return (String)value;
				return GetValue<String>(this.uiviewUserDefAllocRateConfig.FieldOrg_Name);
			}
			set{
				this[this.uiviewUserDefAllocRateConfig.FieldOrg_Name] = value;
			}
		}
		#endregion
	}
	
	[Serializable]
	public class UserDefAllocRateConfigDefaultFilterFilter : UIFilter
	{
		#region Constructor
		public UserDefAllocRateConfigDefaultFilterFilter(IUIView view) 
			: base("DefaultFilter",view,@"",@"")
		{
			InitClass();
		}
		//for Clone Constructor
		private UserDefAllocRateConfigDefaultFilterFilter()
			: base("DefaultFilter",null,"","")
		{}
		protected override IUIFilter CreateCloneInstance()
		{
			return new UserDefAllocRateConfigDefaultFilterFilter();
		}
		#endregion

		#region property
		#endregion
		
		#region function
		private void InitClass()
		{
		}
		#endregion

	}



}